package com.cn.web.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cn.web.dao.UserDao;
import com.cn.web.dao.utils.MysqlQuery;
import com.cn.web.dao.utils.Query;
import com.cn.web.entity.TUser;
import com.cn.web.service.UserService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

@Service
public class UserServiceImpl  extends AbstractService<TUser> implements UserService {
	  @Autowired
	  private UserDao userDao;
	  
	  @Autowired
	  public void setBaseMapper(){
	    super.setBaseDao(userDao);
	  }

	@Override
	protected TUser getQueryEntity(TUser entity) {
		
		Query query1 = new MysqlQuery(true).setLike("email",entity.getEmail(),null,"%");
		entity.setQuery(query1);
		return entity;
	}
	  
}
